#
# Copyright (C) [2024] Xingyun Integrated Circuit, Inc.
#
#   GreenCode was a private technology asset of Xingyun Integrated Circuit， Inc （Confidential）
#   Author :  Shawn.Tan
#   Date : 2025.10.28
#
#   History : Initial Version 2025.10.28
#
#
from base.ItemMap import ItemMap


#  A thin wrapper around an instruction dict, so it can be used as a dict key
#
class InstructionMap(ItemMap):
    def __init__(self, aName, aItemDict):
        super().__init__(aName, aItemDict)

    def itemType(self):
        return "Instruction"

    def isCompatible(self, aOther):
        return isinstance(aOther, InstructionMap)
